﻿@inherits UserBase
@page "/usermanage"
@using ZFY.UMC.Model.Dto.User
@using ZFY.UMC.Model.Dto.UserClaim

<Table DataSource="_userList"
		   Total="_total"
		   Loading="_loading"
		   PageIndex="_pageIndex"
		   PageSize="_pageSize"
		   OnPageIndexChange="PageIndexChanged"
		   Context="user">
		<AntDesign.Column Title="Id" @bind-Field="@user.Id" />
		<AntDesign.Column Title="昵称" @bind-Field="@user.NickName" />
		<AntDesign.Column Title="名称" @bind-Field="@user.Name" />
		<AntDesign.Column Title="邮箱" @bind-Field="@user.Email" />
		<AntDesign.Column Title="电话号码" @bind-Field="@user.PhoneNumber" />
		<AntDesign.Column Title="创建时间" @bind-Field="@user.CreationTime" />
		<ActionColumn>
			<Space>
				<SpaceItem><Button Danger OnClick="()=>DisplyClaims(user)">声明列表</Button></SpaceItem>
			</Space>
		</ActionColumn>
	</Table>

	<br />
	<p>PageIndex: @_pageIndex | PageSize: @_pageSize | Total: @_total</p>

<div class="router-pagging-table">


	<Modal Title="声明列表"
		   Visible="_visibleClaim"
		   OnOk="HandleClaimOk"
		   OnCancel="HandleClaimCancle">
		<Table DataSource="_displayUserClamis"
			   Total="_claimTotal"
			   Loading="_loading"
			   PageIndex="_claimPageIndex"
			   PageSize="_claimPageSize"
			   OnPageIndexChange="ClaimPageIndexChanged">
			<AntDesign.Column Title="类型" @bind-Field="context.ClaimType" />
			<AntDesign.Column Title="值" @bind-Field="context.ClaimValue" />
		</Table>
		<br />
		<p>PageIndex: @_claimPageIndex | PageSize: @_claimPageSize | Total: @_claimTotal</p>
	</Modal>
</div>